import { _decorator, Component, Node, Vec3, RigidBody, BoxColliderComponent } from 'cc';
import { poolManager } from '../../../../Framework/Scripts/Managers/poolManager';
import myUtil from '../../../../Framework/Scripts/Utils/myUtil';
import { Vector3 } from '../../../../Framework/Scripts/Utils/Vector3';
import { constant } from '../../constant';
import { GameApp } from '../../GameApp';
import { enemyBase } from '../enemyBase';
import MapNavAgent from '../MapNavAgent';
import { playerSkillCollider } from '../playerSkillCollider';
const { ccclass, property } = _decorator;

@ccclass('jiguang')
export class jiguang extends Component {



    private oldAp: number = 3



    private body: playerSkillCollider = null


    start() {

    }

    onLoad() {
        this.body = this.node.getChildByName("body").getComponent(playerSkillCollider)
        this.oldAp = this.body.AP
        this.body.AP = this.oldAp + GameApp.Instance.playerData.config.jiguangAtaack.level * 0.5
      
        
      


    }

    update(deltaTime: number) {

    }
}


